package com.ruoyi.caiwu.enums;

/**
 * 
 * @Title: BusinessCompleteStateEnum 
 * @Description: 是否完成对账
 * @author ws
 * @date 2018年4月26日 下午6:53:05
 */
public enum BusinessCompleteStateEnum {

	WANCHENG("完成",1),
	WEIWANCHENG("未完成",2),
	QUXIAO("取消",3);
	
	private String name;
	private int index;
	
	private BusinessCompleteStateEnum(String name, int index) {
		this.index = index;
		this.name = name;
	}
	// 普通方法
	public static String getName(Integer index) {
		if (index == null) {
			return null;
		}
		for (BusinessCompleteStateEnum c : BusinessCompleteStateEnum.values()) {
			if (c.getIndex() == index) {
				return c.name;
			}
		}
		return null;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
}
